<?php
return array(
    'controllers' => array(
        'invokables' => array(
            'ShopApi\Controller\OrdersApi' 			=>	'ShopApi\Controller\OrdersApiController',
			'ShopApi\Controller\ShopComplaintsApi' 	=>	'ShopApi\Controller\ShopComplaintsApiController',
			'ShopApi\Controller\DiscountRefundsApi' =>	'ShopApi\Controller\DiscountRefundsApiController',
			'ShopApi\Controller\ShopReportsApi' 	=>	'ShopApi\Controller\ShopReportsApiController',
		),
    ),
    // The following section is new` and should be added to your file
    'router' => array(
        'routes' => array(
		
            'shop-orders' => array(
                'type'    => 'Segment',
                'options' => array(
                    'route'    => '/shop-orders[/:id]',
                    'constraints' => array(
                        'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
                    ),
                    'defaults' => array(
                        'controller' => 'ShopApi\Controller\OrdersApi',
                    ),
                ),
            ),
			'shop-complaints' => array(
                'type'    => 'Segment',
                'options' => array(
                    'route'    => '/shop-complaints[/:id]',
                    'constraints' => array(
                        'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
                    ),
                    'defaults' => array(
                        'controller' => 'ShopApi\Controller\ShopComplaintsApi',
                    ),
                ),
            ),
			'shop-discount-refunds' => array(
                'type'    => 'Segment',
                'options' => array(
                    'route'    => '/shop-discount-refunds[/:id]',
                    'constraints' => array(
                        'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
                    ),
                    'defaults' => array(
                        'controller' => 'ShopApi\Controller\DiscountRefundsApi',
                    ),
                ),
            ),
			'shop-reports' => array(
                'type'    => 'Segment',
                'options' => array(
                    'route'    => '/shop-reports[/:id]',
                    'constraints' => array(
                        'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
                    ),
                    'defaults' => array(
                        'controller' => 'ShopApi\Controller\ShopReportsApi',
                    ),
                ),
            ),
        ),
    ),
    'view_manager' => array(
        'strategies' => array(
            'ViewJsonStrategy',
        ),
    ),
	
);